<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text">
    <p>您输入的内容是:<span></span></p>
    <!-- 引入jQuery -->
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
    $(function(){
        /*
        document.ready文档（结构）加载完毕
        window.onload:整个页面加载完毕
        */
       $('input').keyup(function(){
           var value=$(this).val();
           $('span').html(value)
       })

    })
    </script>
</body>
</html>